//搜索模型
class SearchModel{
  String? keyword;
  final List<SearchItems> data;

  SearchModel({required this.data});

  factory SearchModel.fromJson(Map<String, dynamic> json) {
    var dataJson = json['data'] as List;
    List<SearchItems> data =
    dataJson.map((e) => SearchItems.fromJson(e)).toList();
    return SearchModel(data: data);
  }
}

class SearchItems{
  final String? word;
  final String? type;
  final String? price;
  final String? star;
  final String? zonename;
  final String? districtname;
  final String? url;

  SearchItems({
        required this.word,required this.type,required this.price,required this.star,required this.zonename,
       required this.districtname,required this.url
    });

  factory SearchItems.fromJson(Map<String, dynamic> json) {
    return SearchItems(
      word: json['word'],
      type: json['type'],
      price: json['price'],
      star: json['star'],
      zonename: json['zonename'],
      districtname: json['districtname'],
      url: json['url'],
    );
  }
}